package com.cskaoyan.service;

import com.cskaoyan.bean.baseresultVO.BaseData;
import com.cskaoyan.bean.baseresultVO.BaseParam;
import com.cskaoyan.bean.domain.Coupon;
import lombok.Data;

import java.util.List;

public interface CouponService {
    BaseData couponList(String name, Short type, Short status, BaseParam baseParam);

    Coupon couponRead(Integer id);

    BaseData listUser(Integer couponId, Integer userId, Short status, BaseParam baseParam);

    Coupon couponUpdate(Coupon coupon);

    int couponDelete(Coupon coupon);

    Coupon couponCreate(Coupon coupon);

    List<Coupon> couponsWithOutPage();

    BaseData couponListWithOutSort(Short status, BaseParam baseParam);

    BaseData couponListWithOutSort();

    int couponReceive(Integer couponId);

    int couponExchange(String code);
}
